package com.qm.ms005.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AopConfigure {


    @Around("execution(public String com.qm.ms005.service..*(..))")
    public void getMethods(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {

        //Object[] args = proceedingJoinPoint.getArgs();
        //System.out.println(args[0]);
        //System.out.println(args[1]);

        System.out.println("之前");

        Object proceed = proceedingJoinPoint.proceed();

        System.out.println("之后");
    }

}
